#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
配置管理模块
集中管理所有配置项，避免硬编码
"""

# HTTP请求配置
DEFAULT_HEADERS = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
    'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
    'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6'
}

# 图片配置
IMAGE_SIZES = {
    'poster': (480, 720),      # 海报尺寸
    'fanart': (1920, 1080)     # 同人画尺寸
}

IMAGE_QUALITY = 95             # 图片质量

# 视频文件配置
SUPPORTED_VIDEO_EXTENSIONS = {'.mp4', '.mkv', '.rmvb', '.avi', '.mov', '.wmv', '.flv'}

# 网络请求配置
REQUEST_DELAY = 3              # 请求间隔延迟（秒）
REQUEST_TIMEOUT = 30           # 请求超时时间（秒）

# GUI配置
WINDOW_SIZE = "1000x615"        # 主窗口尺寸
DIALOG_SIZE = "600x400"        # 对话框尺寸

# 文件名配置
LIST_FILE_NAME = "List.txt"
LOST_FILE_NAME = "lost.txt"
HELP_FILE_NAME = "help.txt"

# 日志配置
LOG_ICONS = {
    'info': 'ℹ️',
    'success': '✅',
    'warning': '⚠️',
    'error': '❌',
    'processing': '🔄',
    'skip': '⏭️',
    'search': '🔍',
    'download': '📥',
    'folder': '📁',
    'file': '📄',
    'image': '🖼️',
    'movie': '🎬',
    'complete': '🎉'
}

# TMDb网站配置
TMDB_BASE_URL = "https://www.themoviedb.org"
TMDB_SEARCH_URL = f"{TMDB_BASE_URL}/search/movie?query="

# 应用信息
APP_NAME = "TMDb电影刮削器"
APP_VERSION = "1.0.0"
